package com.lebang.mapper;

import com.lebang.domain.VideoCollectionRecord;
import com.lebang.example.VideoCollectionRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * VideoCollectionRecordMapper继承基类
 */
@Mapper
public interface VideoCollectionRecordMapper extends MyBatisBaseDao<VideoCollectionRecord, Integer, VideoCollectionRecordExample> {
    Integer checkRecordExit(@Param("memberId") String memberId,@Param("mAuthorId") Long mAuthorId);

    List<VideoCollectionRecord> selectByMemberId(@Param("memberId") String memberId);

    int deleteByMemberAndAuthor(@Param("memberId") String memberId,@Param("mAuthorId") Long mAuthorId);

    VideoCollectionRecord selectCollectRecordByMemberIdAndAuthorId(@Param("memberId") String memberId,@Param("mAuthorId") Long mAuthorId);
}